package personnel.department.dao;
import java.util.List;

import personnel.department.dao.entity.UniqueObject;

public interface DAO {
	
	void add(UniqueObject object);

	void addAll(List<UniqueObject> objects);
	
	UniqueObject getObjectById(Long id, Class<? extends UniqueObject> type);
	
	List<? extends UniqueObject> getAllObjects(Class<? extends UniqueObject> type);
	
	void updateObject(UniqueObject object);
	
	void deleteObject(UniqueObject object);

}
